package com.atguigu.my.chapter01

/**
 *
 * @description: xxx
 * @time: 2020-05-20 16:47
 * @author: baojinlong 
 **/
object LookSourceCode {
  def main(args: Array[String]): Unit = {
    val myArr: Array[Int] = new Array[Int](10)
    for (x <- myArr) {
      println("item=" + x)
    }
    val result: Int = sum(1, 2)
    println(s"result = $result")
  }

  def sum(n1: Int, n2: Int): Int = {
    n1 + n2
  }

}
